home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / jpeg.mak.in < prev    next >
Text File  |  1997-03-16  |  11KB  |  358 lines

  1. #    Copyright (C) 1994, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # makefile for Independent JPEG Group library code.
  16.  
  17. # NOTE: This makefile is only known to work with the following versions
  18. # of the IJG library: 6, 6a.
  19. # As of May 11, 1996, version 6a is the current version.
  20. #
  21. # You can get the IJG library by Internet anonymous FTP from the following
  22. # places:
  23. #    Standard distribution (tar + gzip format, Unix end-of-line):
  24. #        ftp.uu.net:/graphics/jpeg/jpegsrc.v*.tar.gz
  25. #        ftp.cs.wisc.edu:/ghost/jpegsrc.v*.tar.gz
  26. #    MS-DOS archive (PKZIP a.k.a. zip format, MS-DOS end-of-line):
  27. #        oak.oakland.edu:/SimTel/msdos/graphics/jpgsrc*.zip
  28. #        ftp.cs.wisc.edu:/ghost/jpeg-*.zip
  29. # The first site named above (ftp.uu.net and oak.oakland.edu) is supposed
  30. # to be the master distribution site, so it may have a more up-to-date
  31. # version; the ftp.cs.wisc.edu site is the master distribution site for
  32. # Ghostscript, so it will always have IJG library versions known to be
  33. # compatible with Ghostscript.
  34. #
  35. # If the version number, and hence the subdirectory name, changes, you
  36. # will probably want to change the definitions of JSRCDIR and possibly
  37. # JVERSION (in the platform-specific makefile, not here) to reflect this,
  38. # since that way you can use the IJG archive without change.
  39. #
  40. # NOTE: For some obscure reason (probably a bug in djtarx), if you are
  41. # compiling on a DesqView/X system, you should use the zip version of the
  42. # IJG library, not the tar.gz version.
  43.  
  44. # Define the name of this makefile.
  45. JPEG_MAK=jpeg.mak
  46.  
  47. # JSRCDIR is defined in the platform-specific makefile, not here,
  48. # as the directory where the IJG library sources are stored.
  49. #JSRCDIR=jpeg-6a
  50. # JVERSION is defined in the platform-specific makefile, not here,
  51. # as the IJG library major version number (currently "5" or "6").
  52. #JVERSION=6
  53.  
  54. JSRC=$(JSRCDIR)$(D)
  55. CCCJ=$(CCC) -I. -I$(srcdir) -I$(JSRCDIR)
  56.  
  57. # We keep all of the IJG code in a separate directory so as not to
  58. # inadvertently mix it up with Aladdin Enterprises' own code.
  59. # However, we need our own version of jconfig.h, and our own "wrapper" for
  60. # jmorecfg.h.  We also need a substitute for jerror.c, in order to
  61. # keep the error strings out of the automatic data segment in
  62. # 16-bit environments.  For v5*, we also need our own version of jpeglib.h
  63. # in order to change MAX_BLOCKS_IN_MCU for Adobe compatibility.
  64. # (This need will go away when IJG v6 is released.)
  65.  
  66. jconfig_h=jconfig.h $(std_h)
  67. jerror_h=jerror.h
  68. jmorecfg_h=jmorecfg.h jmcorig.h
  69. jpeglib_h=jpeglib.h $(jconfig_h) $(jmorecfg_h)
  70.  
  71. jconfig.h: gsjconf.h
  72.     $(CP_) $(srcdir)/gsjconf.h jconfig.h
  73.  
  74. jmorecfg.h: gsjmorec.h
  75.     $(CP_) $(srcdir)/gsjmorec.h jmorecfg.h
  76.  
  77. jmcorig.h: $(JSRC)jmorecfg.h
  78.     $(CP_) $(JSRC)jmorecfg.h jmcorig.h
  79.  
  80. jpeglib.h: jlib$(JVERSION).h
  81.     $(CP_) jlib$(JVERSION).h jpeglib.h
  82.  
  83. jlib5.h: gsjpglib.h
  84.     $(CP_) $(srcdir)/gsjpglib.h jlib5.h
  85.  
  86. jlib6.h: $(JSRC)jpeglib.h
  87.     $(CP_) $(JSRC)jpeglib.h jlib6.h
  88.  
  89. # To ensure that the compiler finds our versions of jconfig.h and jmorecfg.h,
  90. # regardless of the compiler's search rule, we must copy up all .c files,
  91. # and all .h files that include either of these files, directly or
  92. # indirectly.  The only such .h files currently are jinclude.h and jpeglib.h.
  93. # (Currently, we supply our own version of jpeglib.h -- see above.)
  94. # Also, to avoid including the JSRCDIR directory name in our source files,
  95. # we must also copy up any other .h files that our own code references.
  96. # Currently, the only such .h files are jerror.h and jversion.h.
  97.  
  98. JHCOPY=jinclude.h jpeglib.h jerror.h jversion.h
  99.  
  100. jinclude.h: $(JSRC)jinclude.h
  101.     $(CP_) $(JSRC)jinclude.h jinclude.h
  102.  
  103. #jpeglib.h: $(JSRC)jpeglib.h
  104. #    $(CP_) $(JSRC)jpeglib.h jpeglib.h
  105.  
  106. jerror.h: $(JSRC)jerror.h
  107.     $(CP_) $(JSRC)jerror.h jerror.h
  108.  
  109. jversion.h: $(JSRC)jversion.h
  110.     $(CP_) $(JSRC)jversion.h jversion.h
  111.  
  112. # In order to avoid having to keep the dependency lists for the IJG code
  113. # accurate, we simply make all of them depend on the only files that
  114. # we are ever going to change, and on all the .h files that must be copied up.
  115. # This is too conservative, but only hurts us if we are changing our own
  116. # j*.h files, which happens only rarely during development.
  117.  
  118. JDEP=$(AK) $(jconfig_h) $(jerror_h) $(jmorecfg_h) $(JHCOPY)
  119.  
  120. # Code common to compression and decompression.
  121.  
  122. jpegc_=jcomapi.$(OBJ) jutils.$(OBJ) sjpegerr.$(OBJ) jmemmgr.$(OBJ)
  123. jpegc.dev: $(JPEG_MAK) $(ECHOGS_XE) $(jpegc_)
  124.     $(SETMOD) jpegc $(jpegc_)
  125.  
  126. jcomapi.$(OBJ): $(JSRC)jcomapi.c $(JDEP)
  127.     $(CP_) $(JSRC)jcomapi.c .
  128.     $(CCCJ) jcomapi.c
  129.     $(RM_) jcomapi.c
  130.  
  131. jutils.$(OBJ): $(JSRC)jutils.c $(JDEP)
  132.     $(CP_) $(JSRC)jutils.c .
  133.     $(CCCJ) jutils.c
  134.     $(RM_) jutils.c
  135.  
  136. # Note that sjpegerr replaces jerror.
  137. sjpegerr.$(OBJ): $(srcdir)/sjpegerr.c $(JDEP)
  138.     $(CCCF) -I. -I$(srcdir) $(srcdir)/sjpegerr.c
  139.  
  140. jmemmgr.$(OBJ): $(JSRC)jmemmgr.c $(JDEP)
  141.     $(CP_) $(JSRC)jmemmgr.c .
  142.     $(CCCJ) jmemmgr.c
  143.     $(RM_) jmemmgr.c
  144.  
  145. # Encoding (compression) code.
  146.  
  147. jpege.dev: jpege$(JVERSION).dev
  148.     $(CP_) jpege$(JVERSION).dev jpege.dev
  149.  
  150. jpege5=jcapi.$(OBJ)
  151. jpege6=jcapimin.$(OBJ) jcapistd.$(OBJ) jcinit.$(OBJ)
  152.  
  153. jpege_1=jccoefct.$(OBJ) jccolor.$(OBJ) jcdctmgr.$(OBJ) 
  154. jpege_2=jchuff.$(OBJ) jcmainct.$(OBJ) jcmarker.$(OBJ) jcmaster.$(OBJ)
  155. jpege_3=jcparam.$(OBJ) jcprepct.$(OBJ) jcsample.$(OBJ) jfdctint.$(OBJ)
  156.  
  157. jpege5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege5) $(jpege_1) $(jpege_2) $(jpege_3)
  158.     $(SETMOD) jpege5 $(jpege5)
  159.     $(ADDMOD) jpege5 -include jpegc
  160.     $(ADDMOD) jpege5 -obj $(jpege_1)
  161.     $(ADDMOD) jpege5 -obj $(jpege_2)
  162.     $(ADDMOD) jpege5 -obj $(jpege_3)
  163.  
  164. jpege6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege6) $(jpege_1) $(jpege_2) $(jpege_3)
  165.     $(SETMOD) jpege6 $(jpege6)
  166.     $(ADDMOD) jpege6 -include jpegc
  167.     $(ADDMOD) jpege6 -obj $(jpege_1)
  168.     $(ADDMOD) jpege6 -obj $(jpege_2)
  169.     $(ADDMOD) jpege6 -obj $(jpege_3)
  170.  
  171. # jcapi.c is v5* only
  172. jcapi.$(OBJ): $(JSRC)jcapi.c $(JDEP)
  173.     $(CP_) $(JSRC)jcapi.c .
  174.     $(CCCJ) jcapi.c
  175.     $(RM_) jcapi.c
  176.   
  177. # jcapimin.c is new in v6
  178. jcapimin.$(OBJ): $(JSRC)jcapimin.c $(JDEP)
  179.     $(CP_) $(JSRC)jcapimin.c .
  180.     $(CCCJ) jcapimin.c
  181.     $(RM_) jcapimin.c
  182.  
  183. # jcapistd.c is new in v6
  184. jcapistd.$(OBJ): $(JSRC)jcapistd.c $(JDEP)
  185.     $(CP_) $(JSRC)jcapistd.c .
  186.     $(CCCJ) jcapistd.c
  187.     $(RM_) jcapistd.c
  188.  
  189. # jcinit.c is new in v6
  190. jcinit.$(OBJ): $(JSRC)jcinit.c $(JDEP)
  191.     $(CP_) $(JSRC)jcinit.c .
  192.     $(CCCJ) jcinit.c
  193.     $(RM_) jcinit.c
  194.  
  195. jccoefct.$(OBJ): $(JSRC)jccoefct.c $(JDEP)
  196.     $(CP_) $(JSRC)jccoefct.c .
  197.     $(CCCJ) jccoefct.c
  198.     $(RM_) jccoefct.c
  199.  
  200. jccolor.$(OBJ): $(JSRC)jccolor.c $(JDEP)
  201.     $(CP_) $(JSRC)jccolor.c .
  202.     $(CCCJ) jccolor.c
  203.     $(RM_) jccolor.c
  204.  
  205. jcdctmgr.$(OBJ): $(JSRC)jcdctmgr.c $(JDEP)
  206.     $(CP_) $(JSRC)jcdctmgr.c .
  207.     $(CCCJ) jcdctmgr.c
  208.     $(RM_) jcdctmgr.c
  209.  
  210. jchuff.$(OBJ): $(JSRC)jchuff.c $(JDEP)
  211.     $(CP_) $(JSRC)jchuff.c .
  212.     $(CCCJ) jchuff.c
  213.     $(RM_) jchuff.c
  214.  
  215. jcmainct.$(OBJ): $(JSRC)jcmainct.c $(JDEP)
  216.     $(CP_) $(JSRC)jcmainct.c .
  217.     $(CCCJ) jcmainct.c
  218.     $(RM_) jcmainct.c
  219.  
  220. jcmarker.$(OBJ): $(JSRC)jcmarker.c $(JDEP)
  221.     $(CP_) $(JSRC)jcmarker.c .
  222.     $(CCCJ) jcmarker.c
  223.     $(RM_) jcmarker.c
  224.  
  225. jcmaster.$(OBJ): $(JSRC)jcmaster.c $(JDEP)
  226.     $(CP_) $(JSRC)jcmaster.c .
  227.     $(CCCJ) jcmaster.c
  228.     $(RM_) jcmaster.c
  229.  
  230. jcparam.$(OBJ): $(JSRC)jcparam.c $(JDEP)
  231.     $(CP_) $(JSRC)jcparam.c .
  232.     $(CCCJ) jcparam.c
  233.     $(RM_) jcparam.c
  234.  
  235. jcprepct.$(OBJ): $(JSRC)jcprepct.c $(JDEP)
  236.     $(CP_) $(JSRC)jcprepct.c .
  237.     $(CCCJ) jcprepct.c
  238.     $(RM_) jcprepct.c
  239.  
  240. jcsample.$(OBJ): $(JSRC)jcsample.c $(JDEP)
  241.     $(CP_) $(JSRC)jcsample.c .
  242.     $(CCCJ) jcsample.c
  243.     $(RM_) jcsample.c
  244.  
  245. jfdctint.$(OBJ): $(JSRC)jfdctint.c $(JDEP)
  246.     $(CP_) $(JSRC)jfdctint.c .
  247.     $(CCCJ) jfdctint.c
  248.     $(RM_) jfdctint.c
  249.  
  250. # Decompression code
  251.  
  252. jpegd.dev: jpegd$(JVERSION).dev
  253.     $(CP_) jpegd$(JVERSION).dev jpegd.dev
  254.  
  255. jpegd5=jdapi.$(OBJ)
  256. jpegd6=jdapimin.$(OBJ) jdapistd.$(OBJ) jdinput.$(OBJ) jdphuff.$(OBJ)
  257.  
  258. jpegd_1=jdcoefct.$(OBJ) jdcolor.$(OBJ)
  259. jpegd_2=jddctmgr.$(OBJ) jdhuff.$(OBJ) jdmainct.$(OBJ) jdmarker.$(OBJ)
  260. jpegd_3=jdmaster.$(OBJ) jdpostct.$(OBJ) jdsample.$(OBJ) jidctint.$(OBJ)
  261.  
  262. jpegd5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd5) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  263.     $(SETMOD) jpegd5 $(jpegd5)
  264.     $(ADDMOD) jpegd5 -include jpegc
  265.     $(ADDMOD) jpegd5 -obj $(jpegd_1)
  266.     $(ADDMOD) jpegd5 -obj $(jpegd_2)
  267.     $(ADDMOD) jpegd5 -obj $(jpegd_3)
  268.  
  269. jpegd6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd6) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  270.     $(SETMOD) jpegd6 $(jpegd6)
  271.     $(ADDMOD) jpegd6 -include jpegc
  272.     $(ADDMOD) jpegd6 -obj $(jpegd_1)
  273.     $(ADDMOD) jpegd6 -obj $(jpegd_2)
  274.     $(ADDMOD) jpegd6 -obj $(jpegd_3)
  275.  
  276. # jdapi.c is v5* only
  277. jdapi.$(OBJ): $(JSRC)jdapi.c $(JDEP)
  278.     $(CP_) $(JSRC)jdapi.c .
  279.     $(CCCJ) jdapi.c
  280.     $(RM_) jdapi.c
  281.  
  282. # jdapimin.c is new in v6
  283. jdapimin.$(OBJ): $(JSRC)jdapimin.c $(JDEP)
  284.     $(CP_) $(JSRC)jdapimin.c .
  285.     $(CCCJ) jdapimin.c
  286.     $(RM_) jdapimin.c
  287.  
  288. # jdapistd.c is new in v6
  289. jdapistd.$(OBJ): $(JSRC)jdapistd.c $(JDEP)
  290.     $(CP_) $(JSRC)jdapistd.c .
  291.     $(CCCJ) jdapistd.c
  292.     $(RM_) jdapistd.c
  293.  
  294. jdcoefct.$(OBJ): $(JSRC)jdcoefct.c $(JDEP)
  295.     $(CP_) $(JSRC)jdcoefct.c .
  296.     $(CCCJ) jdcoefct.c
  297.     $(RM_) jdcoefct.c
  298.  
  299. jdcolor.$(OBJ): $(JSRC)jdcolor.c $(JDEP)
  300.     $(CP_) $(JSRC)jdcolor.c .
  301.     $(CCCJ) jdcolor.c
  302.     $(RM_) jdcolor.c
  303.  
  304. jddctmgr.$(OBJ): $(JSRC)jddctmgr.c $(JDEP)
  305.     $(CP_) $(JSRC)jddctmgr.c .
  306.     $(CCCJ) jddctmgr.c
  307.     $(RM_) jddctmgr.c
  308.  
  309. jdhuff.$(OBJ): $(JSRC)jdhuff.c $(JDEP)
  310.     $(CP_) $(JSRC)jdhuff.c .
  311.     $(CCCJ) jdhuff.c
  312.     $(RM_) jdhuff.c
  313.  
  314. # jdinput.c is new in v6
  315. jdinput.$(OBJ): $(JSRC)jdinput.c $(JDEP)
  316.     $(CP_) $(JSRC)jdinput.c .
  317.     $(CCCJ) jdinput.c
  318.     $(RM_) jdinput.c
  319.  
  320. jdmainct.$(OBJ): $(JSRC)jdmainct.c $(JDEP)
  321.     $(CP_) $(JSRC)jdmainct.c .
  322.     $(CCCJ) jdmainct.c
  323.     $(RM_) jdmainct.c
  324.  
  325. jdmarker.$(OBJ): $(JSRC)jdmarker.c $(JDEP)
  326.     $(CP_) $(JSRC)jdmarker.c .
  327.     $(CCCJ) jdmarker.c
  328.     $(RM_) jdmarker.c
  329.  
  330. jdmaster.$(OBJ): $(JSRC)jdmaster.c $(JDEP)
  331.     $(CP_) $(JSRC)jdmaster.c .
  332.     $(CCCJ) jdmaster.c
  333.     $(RM_) jdmaster.c
  334.  
  335. # jdphuff.c is new in v6
  336. jdphuff.$(OBJ): $(JSRC)jdphuff.c $(JDEP)
  337.     $(CP_) $(JSRC)jdphuff.c .
  338.     $(CCCJ) jdphuff.c
  339.     $(RM_) jdphuff.c
  340.  
  341. jdpostct.$(OBJ): $(JSRC)jdpostct.c $(JDEP)
  342.     $(CP_) $(JSRC)jdpostct.c .
  343.     $(CCCJ) jdpostct.c
  344.     $(RM_) jdpostct.c
  345.  
  346. jdsample.$(OBJ): $(JSRC)jdsample.c $(JDEP)
  347.     $(CP_) $(JSRC)jdsample.c .
  348.     $(CCCJ) jdsample.c
  349.     $(RM_) jdsample.c
  350.  
  351. jidctint.$(OBJ): $(JSRC)jidctint.c $(JDEP)
  352.     $(CP_) $(JSRC)jidctint.c .
  353.     $(CCCJ) jidctint.c
  354.     $(RM_) jidctint.c
  355.